﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using System.Threading.Tasks;

namespace JXC.Core.Models
{
    /// <summary>
    /// 采购付款主文件
    /// </summary>
    public class CaigouPaid
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        //付款单号
        public Guid Id { get; set; }
        //付款日期
        public DateTime PayTime { get; set; }
        //金额
        public decimal Money { get; set; }
        
        //供应商
        [ForeignKey("SupplierId")]
        public Guid SupplierID { get; set; }
        //货币
        public string Monetary { get; set; }
        //付款方式
        public string PayStyle { get; set; }
        //付款来源
        public string PayFrom { get; set; }
        //操作员
        [ForeignKey("UserInfosId")]
        public Guid OperatorID { get; set; }
        //审核人
        [ForeignKey("UserInfosId")]
        public Guid? ExaminerID { get; set; }
        //备注
        public string? Others { get; set; }
        //审核状态
        public int ExamineState { get; set; }
        
        public UserInfos Operator { get; set; }
        public UserInfos Examiner { get; set; }
      
        public Supplier Supplier { get; set; }

    }
}
